package com.hq.service.impl;

import com.hq.mapper.PassengerMapper;
import com.hq.model.Guide;
import com.hq.model.ScenicSpot;
import com.hq.model.Shopping;
import com.hq.service.PassengerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 游客
 */
@Service
public class PassengerServiceImpl implements PassengerService {

    @Autowired
    PassengerMapper passengerMapper;

    @Override
    public void del(int id) {
        passengerMapper.del(id);
    }

    @Override
    public void myOrder(int id, String payment) {
        passengerMapper.myOrder(id, payment);
    }

    @Override
    public Shopping goBuy(int id) {
        return passengerMapper.goBuy(id);
    }

    @Override
    public List<Guide> findGuide() {
        return passengerMapper.findGuide();
    }

    @Override
    public List<Shopping> paid(String paid) {
        return passengerMapper.paid(paid);
    }

    @Override
    public int goShopping(String scenicSpot, String price, String payment, String username) {
        return passengerMapper.goShopping(scenicSpot, price, payment, username);
    }

    @Override
    public List<ScenicSpot> findSpot() {
        return passengerMapper.findSpot();
    }

    @Override
    public List<Shopping> queryShoppingCart(String username) {
        return passengerMapper.queryShoppingCart(username);
    }
}
